package com.gzedu.fun.demo.view;

import android.content.Context;
import android.widget.ListView;

import com.gzedu.R;
import com.gzedu.frame.logic.adapter.IMcAdapter;
import com.gzedu.frame.logic.adapter.McBaseAdapter;
import com.gzedu.frame.logic.listener.IBaseListener;
import com.gzedu.frame.view.BaseView;
import com.gzedu.fun.demo.logic.listener.DemoListener;

public class DemoView extends BaseView {
	
	private ListView listView;
	
	public DemoView(Context context, int layoutId) {
		super(context, layoutId);
	}

	@Override
	public void initui() {
		listView=(ListView) view.findViewById(R.id.demo_listView);
	}

	@Override
	public void setListener(IBaseListener listener) {
		DemoListener demoListener=(DemoListener) listener;
		listView.setOnItemClickListener(demoListener);
	}

	@Override
	public void setAdapter(IMcAdapter adapter) {
		McBaseAdapter baseAdapter=(McBaseAdapter) adapter;
		listView.setAdapter(baseAdapter);
	}

	@Override
	public void setUIDate(Object object) {
		
	}

}
